package com.bydq.patrolsystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PsInspectiontaskMain implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 主键ID
     */
    @TableField("ps_id")
    private Long psId;

    @TableField("inspectionTaskCode")
    private String inspectionTaskCode;

    @TableField("inspectionTaskName")
    private String inspectionTaskName;

    /**
     * 所属线路ID
     */
    @TableField("lineId")
    private Long lineId;

    @TableField("lineCode")
    private String lineCode;

    @TableField("lineName")
    private String lineName;

    /**
     * 起始杆号ID
     */
    @TableField("startPole")
    private Long startPole;

    @TableField("startPoleCode")
    private String startPoleCode;

    /**
     * 终止杆号ID
     */
    @TableField("endPole")
    private Long endPole;

    @TableField("endPoleCode")
    private String endPoleCode;

    @TableField("issuedByCode")
    private String issuedByCode;

    @TableField("issuedByName")
    private String issuedByName;

    /**
     * 任务下发时间
     */
    @TableField("issuedTime")
    private Date issuedTime;

    /**
     * 任务状态ID
     */
    @TableField("taskStatus")
    private Long taskStatus;

    @TableField("taskStatusName")
    private String taskStatusName;

    /**
     * 任务完成时间
     */
    @TableField("finishTime")
    private Date finishTime;

    private String common;

    /**
     * 创建时间
     */
    @TableField(value = "creationTime",fill = FieldFill.INSERT)
    private Date creationTime;

    @TableField("createdBy")
    private String createdBy;

    /**
     * 最后修改时间
     */
    @TableField(value = "lastUpdateTime",fill = FieldFill.INSERT_UPDATE)
    private Date lastUpdateTime;


}
